package com.workpaper.app.workpaper.daily.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ResourceLocator;

import com.workpaper.app.cache.resource.ViewInfoCache;
import com.workpaper.app.consts.AppConsts;
import com.workpaper.app.consts.common.CommonViewConsts;
import com.workpaper.app.consts.resources.IconPath;
import com.workpaper.app.workpaper.daily.view.DailyWorkpaperManagerView;
/**
 * 刷新按钮
 * @author zyj
 *
 */
public class RefreshDailyWorkpaperAction extends Action{

	private DailyWorkpaperManagerView viewPart;

	public RefreshDailyWorkpaperAction(DailyWorkpaperManagerView viewPart) {
		super(ViewInfoCache.get(CommonViewConsts.ButtonText_Refresh), ResourceLocator.imageDescriptorFromBundle(AppConsts.APP_ID, IconPath.BtnIcon_refresh).get());
		this.viewPart = viewPart;
	}

	@Override
	public void run() {
		viewPart.refreshTableData();
	}
	
	
}
